import { ChakraProvider } from '@chakra-ui/react';
import { BrowserRouter as Router } from 'react-router-dom';

import { I18NContextWrapper } from '@/i18n/context';
import Layout from '@/layout';
import Routings from '@/router/Routings';
import { theme } from '@/theme';

const App = () => (
  <I18NContextWrapper>
    <ChakraProvider theme={theme}>
      <Router>
        <Layout>
          <Routings />
        </Layout>
      </Router>
    </ChakraProvider>
  </I18NContextWrapper>
);

export default App;
